package tcu.iot.gasmanage.entity.equipment;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EquipmentQuery {
    //页面返回设备信息数据封装
    private int page;
    private int amount;
    private String equipmentNumber;
    private String province;
    private String region;
    private String pipeline;
    private String site;
    private String equipmentType;
    private String management;
    private String principal;
    private String sort;

    public boolean isSelectEquipmentNull(EquipmentQuery equipmentQuery) {
        return equipmentQuery.getProvince().equals("") || equipmentQuery.getRegion().equals("") || equipmentQuery.getPipeline().equals("") || equipmentQuery.getSite().equals("")
                || equipmentQuery.getEquipmentType().equals("") || equipmentQuery.getManagement().equals("") || equipmentQuery.getPrincipal().equals("");
    }

}
